<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图片链接展示</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f5f5f5;
        }
        .image-item {
            background: white;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .image-preview {
            max-width: 100%;
            max-height: 200px;
            border-radius: 4px;
            margin-bottom: 10px;
        }
        .image-url {
            word-break: break-all;
            background: #f8f9fa;
            padding: 10px;
            border-radius: 4px;
            margin: 10px 0;
            font-size: 14px;
        }
        .copy-btn {
            background: #007bff;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
        }
        .copy-btn:hover {
            background: #0056b3;
        }
        .copy-btn.copied {
            background: #28a745;
        }
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #28a745;
            color: white;
            padding: 10px 20px;
            border-radius: 4px;
            display: none;
        }
    </style>
</head>
<body>
    <h1>图片链接展示</h1>
    
    <div class="image-item">
        <h3>图片 1</h3>
        <img src="https://youke1.picui.cn/s1/2025/09/18/68cbfee892143.png" alt="图片1" class="image-preview">
        <div class="image-url">https://youke1.picui.cn/s1/2025/09/18/68cbfee892143.png</div>
        <button class="copy-btn" onclick="copyToClipboard('https://youke1.picui.cn/s1/2025/09/18/68cbfee892143.png', this)">复制链接</button>
    </div>

    <div class="image-item">
        <h3>图片 2</h3>
        <img src="https://youke1.picui.cn/s1/2025/09/18/68cbfee87ade0.png" alt="图片2" class="image-preview">
        <div class="image-url">https://youke1.picui.cn/s1/2025/09/18/68cbfee87ade0.png</div>
        <button class="copy-btn" onclick="copyToClipboard('https://youke1.picui.cn/s1/2025/09/18/68cbfee87ade0.png', this)">复制链接</button>
    </div>

    <div class="image-item">
        <h3>图片 3</h3>
        <img src="https://youke1.picui.cn/s1/2025/09/18/68cbfee886d99.png" alt="图片3" class="image-preview">
        <div class="image-url">https://youke1.picui.cn/s1/2025/09/18/68cbfee886d99.png</div>
        <button class="copy-btn" onclick="copyToClipboard('https://youke1.picui.cn/s1/2025/09/18/68cbfee886d99.png', this)">复制链接</button>
    </div>

    <div class="image-item">
        <h3>图片 4</h3>
        <img src="https://youke1.picui.cn/s1/2025/09/18/68cbfee8d1820.png" alt="图片4" class="image-preview">
        <div class="image-url">https://youke1.picui.cn/s1/2025/09/18/68cbfee8d1820.png</div>
        <button class="copy-btn" onclick="copyToClipboard('https://youke1.picui.cn/s1/2025/09/18/68cbfee8d1820.png', this)">复制链接</button>
    </div>

    <div class="image-item">
        <h3>图片 5</h3>
        <img src="https://youke1.picui.cn/s1/2025/09/18/68cbfeed35e7c.png" alt="图片5" class="image-preview">
        <div class="image-url">https://youke1.picui.cn/s1/2025/09/18/68cbfeed35e7c.png</div>
        <button class="copy-btn" onclick="copyToClipboard('https://youke1.picui.cn/s1/2025/09/18/68cbfeed35e7c.png', this)">复制链接</button>
    </div>

    <div class="image-item">
        <h3>图片 6</h3>
        <img src="https://youke1.picui.cn/s1/2025/09/18/68cbfeeae39ea.png" alt="图片6" class="image-preview">
        <div class="image-url">https://youke1.picui.cn/s1/2025/09/18/68cbfeeae39ea.png</div>
        <button class="copy-btn" onclick="copyToClipboard('https://youke1.picui.cn/s1/2025/09/18/68cbfeeae39ea.png', this)">复制链接</button>
    </div>

    <div class="image-item">
        <h3>图片 7</h3>
        <img src="https://youke1.picui.cn/s1/2025/09/18/68cbfeed965bd.png" alt="图片7" class="image-preview">
        <div class="image-url">https://youke1.picui.cn/s1/2025/09/18/68cbfeed965bd.png</div>
        <button class="copy-btn" onclick="copyToClipboard('https://youke1.picui.cn/s1/2025/09/18/68cbfeed965bd.png', this)">复制链接</button>
    </div>

    <div class="image-item">
        <h3>图片 8</h3>
        <img src="https://youke1.picui.cn/s1/2025/09/18/68cbfeee5ed57.png" alt="图片8" class="image-preview">
        <div class="image-url">https://youke1.picui.cn/s1/2025/09/18/68cbfeee5ed57.png</div>
        <button class="copy-btn" onclick="copyToClipboard('https://youke1.picui.cn/s1/2025/09/18/68cbfeee5ed57.png', this)">复制链接</button>
    </div>

    <div class="image-item">
        <h3>图片 9</h3>
        <img src="https://youke1.picui.cn/s1/2025/09/18/68cbfeee81280.png" alt="图片9" class="image-preview">
        <div class="image-url">https://youke1.picui.cn/s1/2025/09/18/68cbfeee81280.png</div>
        <button class="copy-btn" onclick="copyToClipboard('https://youke1.picui.cn/s1/2025/09/18/68cbfeee81280.png', this)">复制链接</button>
    </div>

    <div class="image-item">
        <h3>图片 10</h3>
        <img src="https://youke1.picui.cn/s1/2025/09/18/68cbfef2a3582.png" alt="图片10" class="image-preview">
        <div class="image-url">https://youke1.picui.cn/s1/2025/09/18/68cbfef2a3582.png</div>
        <button class="copy-btn" onclick="copyToClipboard('https://youke1.picui.cn/s1/2025/09/18/68cbfef2a3582.png', this)">复制链接</button>
    </div>

    <div class="image-item">
        <h3>图片 11</h3>
        <img src="https://youke1.picui.cn/s1/2025/09/18/68cbfef27e4bb.png" alt="图片11" class="image-preview">
        <div class="image-url">https://youke1.picui.cn/s1/2025/09/18/68cbfef27e4bb.png</div>
        <button class="copy-btn" onclick="copyToClipboard('https://youke1.picui.cn/s1/2025/09/18/68cbfef27e4bb.png', this)">复制链接</button>
    </div>

    <div class="image-item">
        <h3>图片 12</h3>
        <img src="https://youke1.picui.cn/s1/2025/09/18/68cbfef2afe0e.png" alt="图片12" class="image-preview">
        <div class="image-url">https://youke1.picui.cn/s1/2025/09/18/68cbfef2afe0e.png</div>
        <button class="copy-btn" onclick="copyToClipboard('https://youke1.picui.cn/s1/2025/09/18/68cbfef2afe0e.png', this)">复制链接</button>
    </div>

    <div class="image-item">
        <h3>图片 13</h3>
        <img src="https://youke1.picui.cn/s1/2025/09/18/68cbfef2e5728.png" alt="图片13" class="image-preview">
        <div class="image-url">https://youke1.picui.cn/s1/2025/09/18/68cbfef2e5728.png</div>
        <button class="copy-btn" onclick="copyToClipboard('https://youke1.picui.cn/s1/2025/09/18/68cbfef2e5728.png', this)">复制链接</button>
    </div>

    <div class="image-item">
        <h3>图片 14</h3>
        <img src="https://youke1.picui.cn/s1/2025/09/18/68cbfef0b1386.png" alt="图片14" class="image-preview">
        <div class="image-url">https://youke1.picui.cn/s1/2025/09/18/68cbfef0b1386.png</div>
        <button class="copy-btn" onclick="copyToClipboard('https://youke1.picui.cn/s1/2025/09/18/68cbfef0b1386.png', this)">复制链接</button>
    </div>

    <div id="notification" class="notification">链接已复制到剪贴板</div>

    <script>
        function copyToClipboard(text, button) {
            // 创建临时文本区域
            const textArea = document.createElement("textarea");
            textArea.value = text;
            
            // 避免滚动到底部
            textArea.style.top = "0";
            textArea.style.left = "0";
            textArea.style.position = "fixed";
            textArea.style.opacity = "0";
            
            document.body.appendChild(textArea);
            textArea.focus();
            textArea.select();
            
            try {
                // 执行复制命令
                const successful = document.execCommand('copy');
                if (successful) {
                    // 改变按钮状态
                    const originalText = button.textContent;
                    button.textContent = '已复制';
                    button.classList.add('copied');
                    
                    // 显示通知
                    const notification = document.getElementById('notification');
                    notification.style.display = 'block';
                    
                    // 2秒后恢复原状
                    setTimeout(() => {
                        button.textContent = originalText;
                        button.classList.remove('copied');
                        notification.style.display = 'none';
                    }, 2000);
                }
            } catch (err) {
                alert('复制失败，请手动复制链接');
            }
            
            // 清理临时元素
            document.body.removeChild(textArea);
        }
    </script>
</body>
</html>
